package cn.edu.gzgs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 邮件消息实体类
 */
@Data
@TableName("email_msg")
public class EmailMsg implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("sender_id")
    private String senderId;

    @TableField("sender_name")
    private String senderName;

    @TableField("accept_id")
    private String acceptId;

    @TableField("title")
    private String title;

    @TableField("type")
    private String type;

    @TableField("content")
    private String content;

    @TableField("time")
    private LocalDateTime time;

    @TableField("is_read")
    private Boolean isRead;
}